import request from '@/utils/request'

// 查询在线Excel列表
export function listOnlineExcel(query) {
  return request({
    url: '/system/OnlineExcel/list',
    method: 'get',
    params: query
  })
}

// 查询在线Excel详细
export function getOnlineExcel(id) {
  return request({
    url: '/system/OnlineExcel/' + id,
    method: 'get'
  })
}

// 新增在线Excel
export function addOnlineExcel(data) {
  return request({
    url: '/system/OnlineExcel',
    method: 'post',
    data: data
  })
}

// 修改在线Excel
export function updateOnlineExcel(data) {
  return request({
    url: '/system/OnlineExcel',
    method: 'put',
    data: data
  })
}

// 删除在线Excel
export function delOnlineExcel(id) {
  return request({
    url: '/system/OnlineExcel/' + id,
    method: 'delete'
  })
}
